package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    void save(TravelComment travelComment);
    void delete(String id);
    TravelComment get(String id);
    List<TravelComment> list();


    /**
     * 分页查询
     * @param qo
     * @return
     */
    Page<TravelComment> query(TravelCommentQuery qo);


    void update(TravelComment comment);

    /**
     * 查看游记列表
     * @param id
     * @return
     */
    List<TravelComment> queryByTravelId(String id);
}
